package com.lucky.tjs.entity;

public class JobConfig {

    /*
        任务名称
     */
    String jobName;
    /*
        corn表达式
     */
    String cron;
    /*
        分片
     */
    int shardingTotalCount = 1;
    /*
        任务描述
     */
    String jobDescription = "";

    /*
        个性化分片参数
     */
    String shardingItemParameters = "";

    public JobConfig(String jobName, String cron) {
        this.jobName = jobName;
        this.cron = cron;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public int getShardingTotalCount() {
        return shardingTotalCount;
    }

    public void setShardingTotalCount(int shardingTotalCount) {
        this.shardingTotalCount = shardingTotalCount;
    }

    public String getJobDescription() {
        return jobDescription;
    }

    public void setJobDescription(String jobDescription) {
        this.jobDescription = jobDescription;
    }

    public String getShardingItemParameters() {
        return shardingItemParameters;
    }

    public void setShardingItemParameters(String shardingItemParameters) {
        this.shardingItemParameters = shardingItemParameters;
    }

    @Override
    public String toString() {
        return "JobConfig{" +
                "jobName='" + jobName + '\'' +
                ", cron='" + cron + '\'' +
                ", shardingTotalCount=" + shardingTotalCount +
                ", jobDescription='" + jobDescription + '\'' +
                ", shardingItemParameters='" + shardingItemParameters + '\'' +
                '}';
    }
}
